#!/usr/bin/php

<?php


$_DEBUG_APPNAME = 'test';					// Name of debugged/tracked application (usefull if you track more than one app)
$_DEBUG_LOGPATH = './log';					// Path to store logfile
$_DEBUG_MAILTO = 'debug@debug.com';			// Mail address to whom send the bug report
$_DEBUG_MAILFROM = 'test.debug@test.com';	// Mail address from whom it is supposed sended by
$_DEBUG_SENDMAIL = false;					// Send a mail on error
$_DEBUG_WRITELOG = false;					// Write error in a logfile ?
$_DEBUG_SHOWERROR = false;					// Show error in the current HTML file ?
$_DEBUG_SYSLOG = true;						// write to Linux Syslog ? 
$_DEBUG_VERBOSE = 'VVV';					// Verbosity level of the bug report (V = few words / VV = some words / VVV = talkative)

include_once('../libs/debug.class.php');
include_once('../elements/element.class.php');
include_once('../elements/html.class.php');
include_once('../elements/head.class.php');
include_once('../elements/body.class.php');
include_once('../elements/h1.class.php');
include_once('../elements/a.class.php');
include_once('../elements/hr.class.php');

include_once('../widgets/toolbar.widget.class.php');

try
{
	$h1 = new h1("Hello World !");
	$a = new a($h1);
	$hr = new hr();
	// $bodyContent = array($a,$hr);
	$toolbarButtons = array('./pictures/icon1.png' => '#',
							'./pictures/icon2.png' => '#',
							'./pictures/icon3.png' => '#',
							'./pictures/icon4.png' => '#',
							'./pictures/icon5.png' => '#');
	
	$bodyContent = new wToolbar($toolbarButtons,'maintoolbar');
	$body = new body($bodyContent);
	$head = new head();
	$htmlContent = array($head,$body);
	$page = new html($htmlContent);

	// print_r($page);

	$page->render();
}
catch (debug $d)
{
	print_r($toolbar);
	print_r($d->__toString());
}
?>
